package clinicapoo.services;

import clinicapoo.BaseClass;
import clinicapoo.exceptions.ApplicationException;
import clinicapoo.exceptions.ValidationException;

/**
 * * @author fmontezuma
 */
class BaseServices extends BaseClass
{
	protected void logApplicationException(ApplicationException e)
	{
		if (e instanceof ValidationException)
		{
			log.warn(e.getMessage());
		}
		else
		{
			log.error(e.getMessage());
		}
	}
}
